package com.ims.core.doc.service;

import com.ims.core.doc.domain.TSalInvoiceIssue;

import java.util.List;

/**
 * 发票Service接口
 *
 * @author IMS
 * @date 2024-10-25
 */
public interface ITSalInvoiceIssueService
{
    /**
     * 查询发票
     *
     * @param id 发票主键
     * @return 发票
     */
    public TSalInvoiceIssue selectTSalInvoiceIssueById(Long id);

    /**
     * 查询发票
     *
     * @param invoiceId 发票单ID
     * @return 发票
     */
    public TSalInvoiceIssue selectTSalInvoiceIssueByInvoiceId(String invoiceId);

    /**
     * 查询发票(发票号码)
     *
     * @param invoiceNo 发票号码
     * @return 发票
     */
    public TSalInvoiceIssue selectTSalInvoiceIssueByInvoiceNo(String invoiceNo);

    /**
     * 查询发票列表
     *
     * @param tSalInvoiceIssue 发票
     * @return 发票集合
     */
    public List<TSalInvoiceIssue> selectTSalInvoiceIssueList(TSalInvoiceIssue tSalInvoiceIssue);

    /**
     * 新增发票
     *
     * @param tSalInvoiceIssue 发票
     * @return 结果
     */
    public int insertTSalInvoiceIssue(TSalInvoiceIssue tSalInvoiceIssue);

    /**
     * 修改发票
     *
     * @param tSalInvoiceIssue 发票
     * @return 结果
     */
    public int updateTSalInvoiceIssue(TSalInvoiceIssue tSalInvoiceIssue);

    /**
     * 修改发票
     *
     * @param tSalInvoiceIssue 发票
     * @return 结果
     */
    public int updateTSalInvoiceIssueOnly(TSalInvoiceIssue tSalInvoiceIssue);

    /**
     * 批量删除发票
     *
     * @param ids 需要删除的发票主键集合
     * @return 结果
     */
    public int deleteTSalInvoiceIssueByIds(Long[] ids);

    /**
     * 删除发票信息
     *
     * @param id 发票主键
     * @return 结果
     */
    public int deleteTSalInvoiceIssueById(Long id);
}
